package com.bw.msg.adapter;

import com.bw.msg.R;
import com.bw.msg.mvvm.model.entity.MsgEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/19 0019 上午 9:06
 *
 */
class MsgAdapter extends BaseQuickAdapter<MsgEntity.DataBean, BaseViewHolder> {
    public MsgAdapter( ) {
        super(R.layout.item_msg);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, MsgEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.msg_txt1, dataBean.getMsg_title());
        baseViewHolder.setText(R.id.msg_txt2, dataBean.getMsg_content());
        baseViewHolder.setText(R.id.msg_time, dataBean.getMsg_time());
    }
}
